package com.ruoyi.system.service;

import com.ruoyi.system.domain.EmgDisaster;
import com.ruoyi.system.domain.vo.EmgDisasterVo;
import com.ruoyi.system.domain.bo.EmgDisasterBo;
import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.common.core.domain.PageQuery;

import java.util.Collection;
import java.util.List;

/**
 * 灾情Service接口
 *
 * @author ruoyi
 * @date 2023-11-16
 */
public interface IEmgDisasterService {

    /**
     * 查询灾情
     */
    EmgDisasterVo queryById(Long id);

    /**
     * 查询灾情列表
     */
    TableDataInfo<EmgDisasterVo> queryPageList(EmgDisasterBo bo, PageQuery pageQuery);

    /**
     * 查询灾情列表
     */
    List<EmgDisasterVo> queryList(EmgDisasterBo bo);

    /**
     * 新增灾情
     */
    Boolean insertByBo(EmgDisasterBo bo);

    /**
     * 修改灾情
     */
    Boolean updateByBo(EmgDisasterBo bo);

    /**
     * 校验并批量删除灾情信息
     */
    Boolean deleteWithValidByIds(Collection<Long> ids, Boolean isValid);
}
